using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace CinemaLib
{
    /// <summary>
    /// Contains ticket Properties
    /// </summary>
    [DataContract]
    public class Ticket
    {
        [DataMember]
        public Seat Seat { get; set; }
        [DataMember]
        public TicketType TicketType { get; private set; }

        public Ticket(Seat _seat, TicketType _reservationtype)
        {
            Seat = _seat;
            TicketType = _reservationtype;
        }
    }

    /// <summary>
    /// Enum of different ticket types
    /// </summary>
    [DataContract(Name = "ReservationType")]
    public enum TicketType
    {
        [EnumMember]
        Adult,
        [EnumMember]
        Child,
        [EnumMember]
        Senior,
        [EnumMember]
        Student,
    }
}
